<template>
  <div :class="{ 'header-spiler': true, 'header-spiler-bottom-line': bottomLine }">
    <div class="header-spiler-left ">
      <div class="header-spiler-text ">
        <i
          :class="{ 'header-spiler-icon-radius': iconRadius, 'header-spiler-icon': true, 'back_primary': true, }"></i>
        <div class="title">{{ title }}</div>
        <div class="note">{{ note }}</div>
      </div>
      <slot name="left"></slot>
    </div>

    <slot></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  props: {
    title: String,
    note: String,
    bottomLine: {
      type: Boolean,
      default: false,
    },
    iconRadius: {
      type: Boolean,
      default: false,
    },
  }
}
</script>
<style type="less">
.header-spiler-left {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header-spiler {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 5px 0;
  padding: 5px 0;
}

.header-spiler-bottom-line {
  border-bottom: 1px dashed #DCDFE6;
}

.header-spiler .title {
  font-weight: bold;
  font-size: 16px;
  line-height: 16px;
  color: #414243;
}

.header-spiler .note {
  margin-left: 1rem;
  font-size: 15px;
  line-height: 15px;
  color: #909399;
}

.header-spiler-text {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.header-spiler-icon {
  align-self: center;
  display: flex;
  width: 5px;
  height: 16px;
  line-height: 16px;
  margin-right: 8px;

}

.header-spiler-icon-radius {
  border-radius: 3px;
}
</style>
